<template>
  <div class="settings-page">
    <!-- 页面标题 -->
    <t-card class="header-card">
      <div class="card-header">
        <h2 class="page-title">系统设置</h2>
      </div>
    </t-card>
    
    <!-- 设置标签页 -->
    <t-card class="settings-card">
      <t-tabs v-model="activeTab">
        <t-tab-panel value="website" label="网站设置">
          <website-settings />
        </t-tab-panel>
        <t-tab-panel value="payment" label="支付设置">
          <payment-settings />
        </t-tab-panel>
        <t-tab-panel value="notification" label="通知设置">
          <notification-settings />
        </t-tab-panel>
        <t-tab-panel value="backup" label="备份与恢复">
          <backup-settings />
        </t-tab-panel>
      </t-tabs>
    </t-card>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import WebsiteSettings from './components/WebsiteSettings.vue'
import PaymentSettings from './components/PaymentSettings.vue'
import NotificationSettings from './components/NotificationSettings.vue'
import BackupSettings from './components/BackupSettings.vue'

// 当前激活的标签页
const activeTab = ref('website')
</script>

<style scoped>
.settings-page {
  padding: 20px;
}

.header-card {
  margin-bottom: 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}

.settings-card {
  min-height: 600px;
}
</style> 